package com.ruoyi.project.zzuser.apply.service.impl;

import com.ruoyi.common.utils.text.Convert;
import com.ruoyi.project.zzuser.apply.domain.ZzuserApply;
import com.ruoyi.project.zzuser.apply.mapper.ZzuserApplyMapper;
import com.ruoyi.project.zzuser.apply.service.ZzuserApplyService;
import com.ruoyi.project.zzuser.info.domain.ZzuserInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ZzuserApplyServiceImpl implements ZzuserApplyService {
    @Autowired
    private ZzuserApplyMapper zzuserApplyMapper;

    @Override
    public List<ZzuserInfo> selectApplyList(String title, String applicant) {
        return zzuserApplyMapper.selectApplyList(title,applicant);
    }

    @Override
    public int addApply(ZzuserApply zzuserApply) {
        return zzuserApplyMapper.addApply(zzuserApply);
    }

    @Override
    public int deleteApply(String ids) {
        Long[] aid = Convert.toLongArray(ids);
        return zzuserApplyMapper.deleteApply(aid);
    }

    @Override
    public Object selectApplyById(Long applyId) {
        return zzuserApplyMapper.selectApplyById(applyId);
    }

    @Override
    public int updateApply(ZzuserApply zzuserApply) {
        return zzuserApplyMapper.updateApply(zzuserApply);
    }
}
